New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added an option to always display pagination #76
Conversation
+1 |
+1 UI requires disabled pagination controls even if there's only one page of data. |
+1. This definitely needs to be added =)! |
Sure, but it won't merge into |
This option will force rendering the pagination even if there is only one page to display.
Ok, here we go. |
+1 |
1 similar comment
+1 |
@mislav This looks like a great fork. Any reason to not have it in master? |
I've run another rebase against @mislav's master. It's at huerlisi/will_paginate branch show_always. |
+1 |
1 similar comment
+1 |
Nope. If you want to display fake links that do nothing, feel free to use your own helper as fallback <%= will_paginate(@posts) || fake_pagination %> |
Maybe I can accept @mislav 's solution…… |
Sure. It's not really a difficult problem to circumvent, but a question of coherence. |
To increase consistency of page layouts – even if there's only one page – it is handy to display pagination always. I added an option called
:show_always
that can be used for that purpose.Example:
<%= will_paginate @collection, :show_always => true %>